﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Index.aspx.cs" Inherits="Enterprise.UI.Web.Modules.Vote.Index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="../../Styles/css/gridview.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
    <div class="vDaohangtiaoHolder module">
        <div class="vDaohangtiao">
            <ul>
                <li class="first">
                    <a href="/index.aspx" title="首页">首页</a>
                </li>
                <li class="last">网上调查
                </li>
            </ul>
        </div>
    </div>
    <Ent:HeadMenuWeb ID="HeadMenu1" runat="server">       
    </Ent:HeadMenuWeb>
    <asp:GridView ID="GridView1" runat="server" DataKeyNames="VID" AutoGenerateColumns="false"
        Width="100%">
        <Columns>
            <asp:TemplateField ItemStyle-Width="30">
                <ItemTemplate>
                    <img src="../../Manage/Common/img/arrow_142.gif" alt="" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="30" HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex+1 %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="主题" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="260">
                <ItemTemplate>
                    <a href="Vote.aspx?vId=<%#Eval("VID") %>"><%#Eval("VTITLE")%></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="VENDTIME" HeaderText="有效时间至" DataFormatString="{0:yyyy-MM-dd}" />
            <asp:TemplateField HeaderText="发布人">
                <ItemTemplate>
                    <%#Enterprise.Service.User.UserService.GetUserName((int)Eval("VCREATEUSER")) %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="VCREATETIME" HeaderText="发布时间" />
        </Columns>
    </asp:GridView>
</asp:Content>
